// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FIN_RETURN_MONEY
// * CreateDate    : 2014-06-05 18:29:53
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:53
// * LastChanger   : 2014-06-05 18:29:53
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class FinReturnMoneyEntity : EntityBase
    {
        public FinReturnMoneyTable TableSchema
        {
            get
            {
                return FinReturnMoneyTable.Current;
            }
		}
		
		public FinReturnMoneyEntity()
        {

        }
		
		public FinReturnMoneyEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ReturnMoneyId = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_MONEY_ID"]));
			this.ReturnMoneyCode = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_MONEY_CODE"]));
			this.ReturnCode = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_CODE"]));
			this.CustomerName = Convert.ToString(CommonFunctions.ToObject(dr["CUSTOMER_NAME"]));
			this.TotalAmount = Convert.ToString(CommonFunctions.ToObject(dr["TOTAL_AMOUNT"]));
			this.CreateName = Convert.ToString(CommonFunctions.ToObject(dr["CREATE_NAME"]));
			this.CreateTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATE_TIME"]));
			this.ModifyName = Convert.ToString(CommonFunctions.ToObject(dr["MODIFY_NAME"]));
			this.ModifyTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["MODIFY_TIME"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
        }
		
		public FinReturnMoneyEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ReturnMoneyId = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_MONEY_ID"]));
			this.ReturnMoneyCode = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_MONEY_CODE"]));
			this.ReturnCode = Convert.ToString(CommonFunctions.ToObject(dr["RETURN_CODE"]));
			this.CustomerName = Convert.ToString(CommonFunctions.ToObject(dr["CUSTOMER_NAME"]));
			this.TotalAmount = Convert.ToString(CommonFunctions.ToObject(dr["TOTAL_AMOUNT"]));
			this.CreateName = Convert.ToString(CommonFunctions.ToObject(dr["CREATE_NAME"]));
			this.CreateTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATE_TIME"]));
			this.ModifyName = Convert.ToString(CommonFunctions.ToObject(dr["MODIFY_NAME"]));
			this.ModifyTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["MODIFY_TIME"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return FinReturnMoneyTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string ReturnMoneyId
        {
            get { return Convert.ToString(GetData(FinReturnMoneyTable.C_RETURN_MONEY_ID)); }
            set { SetData(FinReturnMoneyTable.C_RETURN_MONEY_ID, value); }
        }
		
        [DataMember]
        public string ReturnMoneyCode
        {
            get { return Convert.ToString(GetData(FinReturnMoneyTable.C_RETURN_MONEY_CODE)); }
            set { SetData(FinReturnMoneyTable.C_RETURN_MONEY_CODE, value); }
        }
		
        [DataMember]
        public string ReturnCode
        {
            get { return Convert.ToString(GetData(FinReturnMoneyTable.C_RETURN_CODE)); }
            set { SetData(FinReturnMoneyTable.C_RETURN_CODE, value); }
        }
		
        [DataMember]
        public string CustomerName
        {
            get { return Convert.ToString(GetData(FinReturnMoneyTable.C_CUSTOMER_NAME)); }
            set { SetData(FinReturnMoneyTable.C_CUSTOMER_NAME, value); }
        }
		
        [DataMember]
        public string TotalAmount
        {
            get { return Convert.ToString(GetData(FinReturnMoneyTable.C_TOTAL_AMOUNT)); }
            set { SetData(FinReturnMoneyTable.C_TOTAL_AMOUNT, value); }
        }
		
        [DataMember]
        public string CreateName
        {
            get { return Convert.ToString(GetData(FinReturnMoneyTable.C_CREATE_NAME)); }
            set { SetData(FinReturnMoneyTable.C_CREATE_NAME, value); }
        }
		
        [DataMember]
        public DateTime CreateTime
        {
            get { return Convert.ToDateTime(GetData(FinReturnMoneyTable.C_CREATE_TIME)); }
            set { SetData(FinReturnMoneyTable.C_CREATE_TIME, value); }
        }
		
        [DataMember]
        public string ModifyName
        {
            get { return Convert.ToString(GetData(FinReturnMoneyTable.C_MODIFY_NAME)); }
            set { SetData(FinReturnMoneyTable.C_MODIFY_NAME, value); }
        }
		
        [DataMember]
        public DateTime ModifyTime
        {
            get { return Convert.ToDateTime(GetData(FinReturnMoneyTable.C_MODIFY_TIME)); }
            set { SetData(FinReturnMoneyTable.C_MODIFY_TIME, value); }
        }
		
        [DataMember]
        public string Description
        {
            get { return Convert.ToString(GetData(FinReturnMoneyTable.C_DESCRIPTION)); }
            set { SetData(FinReturnMoneyTable.C_DESCRIPTION, value); }
        }
		
        [DataMember]
        public string Status
        {
            get { return Convert.ToString(GetData(FinReturnMoneyTable.C_STATUS)); }
            set { SetData(FinReturnMoneyTable.C_STATUS, value); }
        }
		
		#endregion
	}
	
	
}	

